// https://nuxt.com/docs/api/configuration/nuxt-config
import { createSvgIconsPlugin } from "vite-plugin-svg-icons";
import path from "path";
export default defineNuxtConfig({
  compatibilityDate: "2024-11-01",
  devtools: { enabled: true },
  modules: ["@nuxtjs/tailwindcss"],
  css: ["@/assets/scss/index.scss"],

  vite: {
    plugins: [
      createSvgIconsPlugin({
        // 指定需要缓存的图标文件夹
        iconDirs: [path.resolve(process.cwd(), "assets/icons")],
        // 指定symbolId格式
        symbolId: "icon-[name]",
      }),
    ],
  },
});
